:root {
    --primary-color: #3498db;
    --secondary-color: #2980b9;
    --success-color: #2ecc71;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --text-color: #333;
    --border-color: #ddd;
    --background-color: #f8f9fa;
    --card-bg-color: #fff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header styles */
header {
    background-color: var(--dark-color);
    color: white;
    padding: 15px 0;
    margin-bottom: 30px;
}

header h1 {
    font-size: 24px;
    margin-bottom: 15px;
    text-align: center;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 20px;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

nav a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

nav a.active {
    background-color: var(--primary-color);
}

/* Main content styles */
main {
    padding: 20px 0;
}

.filter-section {
    background-color: var(--card-bg-color);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-group {
    margin-right: 15px;
    margin-bottom: 15px;
}

.filter-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 14px;
}

select, input {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    min-width: 150px;
}

select:focus, input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.year-range-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: var(--secondary-color);
}

/* Dashboard styles */
.dashboard {
    margin-bottom: 30px;
}

.stat-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background-color: var(--card-bg-color);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.stat-card h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.stat-value {
    font-size: 28px;
    font-weight: bold;
    color: var(--primary-color);
}

.chart-container {
    background-color: var(--card-bg-color);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.chart {
    height: 400px;
    width: 100%;
}

.chart-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.section-title {
    margin: 20px 0;
    font-size: 18px;
    color: var(--dark-color);
}

/* Comparison styles */
.comparison-selection {
    background-color: var(--card-bg-color);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.comparison-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 20px;
}

.selection-container h3 {
    margin-bottom: 10px;
    font-size: 16px;
}

.filter-row {
    display: flex;
    gap: 10px;
}

.comparison-results {
    margin-top: 30px;
}

.pass-rate-comparison {
    display: flex;
    justify-content: space-around;
}

.pass-rate-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.item-label {
    font-weight: bold;
    margin-bottom: 5px;
}

.item-value {
    font-size: 24px;
    color: var(--primary-color);
}

/* Import page styles */
.import-section {
    background-color: var(--card-bg-color);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.import-form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 15px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.primary-button {
    background-color: var(--primary-color);
    min-height: 38px;
}

.status-message {
    margin: 15px 0;
    padding: 10px;
    border-radius: 4px;
    display: none;
}

.status-message.success {
    background-color: rgba(46, 204, 113, 0.2);
    border: 1px solid var(--success-color);
    color: var(--success-color);
    display: block;
}

.status-message.error {
    background-color: rgba(231, 76, 60, 0.2);
    border: 1px solid var(--danger-color);
    color: var(--danger-color);
    display: block;
}

.preview-container {
    margin-top: 30px;
}

.data-table-container {
    overflow-x: auto;
    max-height: 400px;
    overflow-y: auto;
    margin-top: 15px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table th, table td {
    padding: 10px;
    border: 1px solid var(--border-color);
    text-align: center;
}

table th {
    background-color: #f2f2f2;
    position: sticky;
    top: 0;
}

.manage-data-section {
    background-color: var(--card-bg-color);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.years-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
}

.year-tag {
    background-color: var(--light-color);
    padding: 6px 12px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.delete-year {
    cursor: pointer;
    color: var(--danger-color);
}

.log-container {
    background-color: var(--light-color);
    padding: 15px;
    border-radius: 4px;
    max-height: 300px;
    overflow-y: auto;
    margin-top: 15px;
}

.log-entry {
    padding: 8px;
    border-bottom: 1px solid var(--border-color);
}

.log-entry:last-child {
    border-bottom: none;
}

.log-time {
    font-size: 12px;
    color: #777;
    margin-right: 10px;
}

/* Footer styles */
footer {
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
    color: #777;
    font-size: 14px;
} 